package exp1.test4;

import java.util.LinkedList;

/**
 * Created by 春旺 on 2017/9/25.
 */
public class Linked<T> implements LinkedInterface<T> {
    LinkedList linked = new LinkedList<T>();
    @Override
    public void add(Object newEntry) {
        linked.add(newEntry);
    }

    @Override
    public void remove(Object anEntry) {
        linked.remove(anEntry);

    }

    @Override
    public boolean contains(Object anEntry) {
        boolean b = false;
        if (linked.contains(anEntry))
            b = true;
        return b;
    }
}
